import type { ComponentSize } from '@/constants/size'

export interface PaginationProps {
    size?: ComponentSize,
    background?: boolean,
    pageSize?: number,
    defaultPageSize?: number,
    total: number,
    pageCount?: number,
    pagerCount?: number,
    currentPage?: number,
    defaultCurrentPage?: number,
    prevText?: string,
    prevIcon?: Array<string>,
    nextText?: string,
    nextIcon?: Array<string>,
    disabled?: boolean,
}

export interface PaginationEmits {
    sizeChange: [value: number],
    currentChange: [value: number],
    change: [currentPage: number, pageSize: number],
    prevClick: [value: number],
    nextClick: [value: number],
}